/* 验证模态框样式 */
.verify-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.verify-modal {
  background: rgba(0, 20, 40, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(0, 150, 255, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 150, 255, 0.2);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease-out;
  position: relative;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.verify-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 20px;
  border-bottom: 1px solid rgba(0, 150, 255, 0.2);
}

.verify-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  background: linear-gradient(135deg, #ffffff, #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.verify-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.verify-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.verify-content {
  padding: 30px;
}

.verify-description {
  text-align: center;
  margin-bottom: 25px;
}

.verify-description p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0 0 15px 0;
  line-height: 1.5;
}


.verify-puzzle-area {
  margin-bottom: 25px;
}

.puzzle-background {
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.8), rgba(0, 50, 100, 0.6));
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 150, 255, 0.2);
}

.puzzle-image {
  position: relative;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a2e;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.verify-slider-container {
  margin-top: 20px;
}

.verify-status {
  text-align: center;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-success {
  color: #00cc00;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: successPulse 0.6s ease-out;
  padding: 15px;
  background: rgba(0, 200, 0, 0.1);
  border: 1px solid rgba(0, 200, 0, 0.3);
  border-radius: 10px;
}

.status-error {
  color: #ff4444;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: errorShake 0.6s ease-out;
  padding: 15px;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 10px;
}

.status-text {
  flex: 1;
}

.status-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.status-desc {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.4;
}

.success-icon,
.error-icon {
  font-size: 16px;
  font-weight: bold;
}

@keyframes successPulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes errorShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* 响应式设计 */
@media (max-width: 480px) {
  .verify-modal {
    width: 95%;
    margin: 20px;
  }
  
  .verify-modal-header {
    padding: 20px 20px 15px;
  }
  
  .verify-content {
    padding: 20px;
  }
  
  .verify-title {
    font-size: 18px;
  }
  
  .puzzle-image {
    height: 150px;
    padding: 15px;
  }
  
  .puzzle-piece,
  .puzzle-target {
    width: 50px;
    height: 50px;
  }
  
  .puzzle-piece::before {
    width: 16px;
    height: 16px;
  }
  
  .puzzle-target::before {
    font-size: 10px;
  }
}

.puzzle-bg-image {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    #2c3e50 0%, 
    #3498db 25%, 
    #e74c3c 50%, 
    #f39c12 75%, 
    #27ae60 100%);
  background-size: 200% 200%;
}

.puzzle-gap {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: #1a1a2e;
  border: 2px solid rgba(0, 150, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 150, 255, 0.3);
}

.puzzle-gap::before {
  content: '缺口';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(0, 150, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
}

.puzzle-piece {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, 
    #2c3e50 0%, 
    #3498db 25%, 
    #e74c3c 50%, 
    #f39c12 75%, 
    #27ae60 100%);
  background-size: 200% 200%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 150, 255, 0.3);
  cursor: grab;
  z-index: 2;
}

.puzzle-piece:hover {
  box-shadow: 0 6px 20px rgba(0, 150, 255, 0.4);
}


.puzzle-piece-content {
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  position: relative;
}

.puzzle-piece-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 自定义滑块样式 */
.slider-track {
  position: relative;
  width: 100%;
  height: 40px;
  background: rgba(0, 30, 60, 0.8);
  border: 1px solid rgba(0, 150, 255, 0.3);
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

.slider-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #00aaff, #0088cc);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 150, 255, 0.3);
  cursor: grab;
  z-index: 2;
  user-select: none;
}

.slider-thumb:hover {
  box-shadow: 0 4px 12px rgba(0, 150, 255, 0.4);
}

.slider-thumb:active {
  cursor: grabbing;
  box-shadow: 0 6px 16px rgba(0, 150, 255, 0.5);
}

.slider-handle {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
}

.slider-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
}

.slider-track:hover .slider-thumb {
  box-shadow: 0 4px 12px rgba(0, 150, 255, 0.4);
}
